package com.cqgc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data   //get set tostring
@AllArgsConstructor //带参构造方法
@NoArgsConstructor  //无参构造
@TableName("tb_user")
public class User {
    @TableId(value = "uid", type = IdType.AUTO)
    private int uid;        //id
    private  int role;      //角色，1管理员，2供应商，3采购
    private String account; //账号
    private String password;//密码
    private int state;      //状态-1异常，1正常
    private String phone;   //手机号
    private String username;//昵称
    private String address; //地址

}
